package com.example.service.impl;

import com.example.service.DoService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Auther: tong
 * @Date: 2023/01/19/23:24
 * @Description:
 */
@Service
public class DoServiceImpl implements DoService {


    @Override
    public Object success(String key) {
        Map<String, String> map = new HashMap<>();
        map.put(key,"success");
        return map;
    }

    @Override
    public Object fail(String key) {
        Map<String, String> map = new HashMap<>();
        map.put(key,"fail");
        return map;
    }
}
